package com.wlf.spring.initializingBean;

import org.springframework.context.support.GenericApplicationContext;

public class Application {

    public static void main(String[] args) {
        /**
         * initializingBean 给bean添加初始化方法
         *
         */
        GenericApplicationContext context = new GenericApplicationContext();
        context.registerBean("myBean", MyBean.class);
        context.refresh();

        context.close();
    }
}
